package User;


import javax.json.bind.annotation.JsonbDateFormat;
import javax.json.bind.annotation.JsonbNumberFormat;
import javax.json.bind.annotation.JsonbProperty;
import javax.json.bind.annotation.JsonbTransient;
import java.math.BigDecimal;



public class MessageDTO {

    // 为了使用jsonb,必须有一个空的默认构造方法
    public MessageDTO() {

    }

    public MessageDTO( String name, String e_mail, String password,String phone,String img) {

        this.name = name;
        this.e_mail = e_mail;
        this.password = password;
        this.phone = phone;
        this.img = img;

    }
    private int id;

    @JsonbProperty("name")
    private String name;

    @JsonbProperty("phone")
    private String phone;

    @JsonbProperty("e_mail")
    private String e_mail;


    @JsonbProperty("password")
    private String password;

    @JsonbProperty("img")
    private String img;






    @JsonbNumberFormat(locale = "en_US", value = "#0.0")


    public String getname() {
        return name;
    }

    public void setname(String name) {
        this.name = name;
    }

    public String getimg() {
        return img;
    }

    public void setimg(String img) {
        this.img = img;
    }

    public String getPhone() {
        return phone;
    }

    public void setphone(String phone) {
        this.phone = phone;
    }


    public String gete_mail() {
        return e_mail;
    }

    public void sete_mail(String e_mail) {
        this.e_mail = e_mail;
    }

    public String getpassword() {
        return password;
    }

    public void setpassword(String password) {
        this.password = password;
    }



}
